package com.aixx.springcloud.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;

/**
 * @author shkstart
 * @create 2021-01-28 10:38
 */
@RestController
public class PaymentController {

    @Value("${server.port}")
    private String serverport;

    @GetMapping("payment/consul")
    public  String paymentconsul(){


        return "springcloud with consul :" + serverport + "\t" + UUID.randomUUID().toString();
    }
}
